package org.eclipse.emf.db.query;


public class SelectOrderByStep extends SelectLimitStep {
    SelectOrderByStep(SelectQuery query) {
        super(query);
    }

    public SelectLimitStep orderBy(QueryExpression expr) {
        return orderBy(expr, true);
    }

    public SelectLimitStep orderBy(QueryExpression expr, boolean ascendant) {
        getQuery().orderBy=expr;
        getQuery().orderAsc=ascendant;
        return new SelectLimitStep(getQuery());
    }
}
